package com.wanghua.mall.product.openfeign;

import com.wanghua.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author wanghua
 * @create 2021-09-11 19:52
 */
@FeignClient("mall-secKill")
public interface SecKillClient {
    /**
     * 获得秒杀的商品详细信息
     *
     * @param skuId
     * @return
     */
    @GetMapping("/getSecKillSkuInfo/{skuId}")
    R getSecKillSkuInfo(@PathVariable("skuId") Long skuId);
}
